/*
 * @LastEditTime: 2023-04-15 15:20:37
 */
import { Mongoose } from "../DB/index";

const UserSchema = new Mongoose.Schema(
  {
    // 用户名
    username: String,
    // 密码
    password: String,

    // 解密key
    iv: String,

    //收藏的歌单
    Collections: [{
      id: String
    }],
    // 邮箱
    email: String,
    // 评论
    Comments: [String],
    // 头像
    AvatarUrl: String,
  },
  { timestamps: true }
);

export const User = Mongoose.model("user", UserSchema);
